<script>
	export default {
		onLaunch: function() {
			let _this = this;
			uni.getStorage({
				key:'token',
				success(res){
					let token = res.data;
					_this.$store.commit('setToken',token)
				}
			})
			uni.getStorage({
				key:'userIdData',
				success(res){
					let userIdData = JSON.parse(res.data);
					_this.$store.commit('setUserIdData',userIdData)
				}
			})
			uni.getStorage({
				key:'regnoInfo',
				success(res){
					let regnoInfo = JSON.parse(res.data);
					_this.$store.commit('setRegnoInfo',regnoInfo)
				}
			})
			uni.getStorage({
				key:'parentRegnoInfo',
				success(res){
					let parentRegnoInfo = JSON.parse(res.data);
					_this.$store.commit('setParentRegnoInfo',parentRegnoInfo)
				}
			})
			this.getServicePhone();
			this.getDictMap('parins'); // 党组织建制
			this.getDictMap('busst'); // 企业经营状态
			this.getDictMap('holdingsmsg'); // 企业控股情况
			this.getDictMap('conform'); // 认缴实缴出资方式
			this.getDictMap('guaranperiod'); // 保证的期间
			this.getDictMap('gatype'); // 保证的方式
			this.getDictMap('priclaseckind'); // 主债权种类
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			getDictMap(type){
				this.$http.sendRequest({
					url: '/system/dict-data/type',
					data: {
						type: type
					},
					hideLoad: true,
				})
				.then(res=>{
					let data = res.data?JSON.stringify(res.data):'';
					uni.setStorage({
						key: type,
						data: data,
					})
				})
				.catch(err=>{})
			},
			
			getServicePhone(){
				this.$http.sendRequest({
					url: '/common/get-consultation-hotline',
					hideLoad: true,
				})
				.then(res=>{
					console.log(99995555,res);
					uni.setStorage({
						key: 'servicePhone',
						data: res.data,
					})
				})
				.catch(err=>{})
			},
			
		}
	}
</script>
<template>
  <view>
    <LevitatedSphere></LevitatedSphere>
  </view>
</template>
<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	
	.u-empty{
		margin-top: 100rpx !important;
		margin-bottom: 100rpx !important;
	}
	page {
		// background-color: #f5f5f5;
		background-color: #FFFFFF;
	}

	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
	.submitBtn_bc{
		height: 110rpx;
	}
	.submitBtn{
		width: 100%;
		height: 100rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 36rpx;
		color: #FFF;
		font-weight: bold;
		background-color: #E4B269;
		position: fixed;
		left: 0;
		bottom: 0;
		z-index: 2;
	}
	.submitBtnNo{
		background-color: #D7D7D7;
	}
	.units_suffix{
		text-decoration: none;
		font-weight: normal;
		word-wrap: normal;
		font-size: 30rpx;
		color: #303133;
		text-overflow: ellipsis;
	}
	.units_suffix_colorRed{
		color: red;
	}
</style>

<style>
.upImgWrap .file-picker__progress{
	display: none;
}
.formWrap .u-form-item__body__left__content{
	padding-right: 20rpx !important;
}
.submitBtn_ubtn{
	width: 100vw;
	height: 100rpx;
	background-color: #fff !important;
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 2;
}
.submitBtn_ubtn .u-button{
	width: 100% !important;
	height: 100rpx !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	font-size: 36rpx !important;
	color: #FFF !important;
	font-weight: bold !important;
	background-color: #E4B269 !important;
	position: fixed !important;
	left: 0 !important;
	bottom: 0 !important;
	z-index: 2 !important;
	border: 0 !important;
	border-radius: 0 !important;
	z-index: 3;
}
.formWrap .u-radio-group{
	justify-content: flex-end;
}
.formWrap .u-radio{
	margin: 0 26rpx;
}
.formLengthWrap .u-form-item__body{
	display: block !important;
}
.formLengthWrap .u-form-item__body__left{
	margin-bottom: 20rpx !important;
}
.formLengthWrap .u-radio{
	margin-right: 20rpx;
}


.textLength .u-form-item__body{
	display: block !important;
}
.textLength .u-radio-group{
	justify-content: flex-start;
}
.textLength .u-form-item__body__right{
	margin-top: 20rpx;
}

.showHint_wrap{
	position: relative;
}
.showHint_wrap .showHint{
	position: absolute;
	left: 0;
	top: 22rpx;
}
.showHint_wrap .u-form-item__body__left__content{
	margin-left: 50rpx;
}

</style>